package com.spotimage.wsn;

import java.util.HashMap;
import java.util.List;
import java.util.UUID;


/**
 * Default implementation of subscription DB backed up by a hash map that is fully stored in memory.
 * 
 * @author Alexandre Robin <alexandre.robin@spotimage.fr>
 */
public class InMemorySubscriptionDB extends HashMap<String, SubscriptionInfo> implements ISubscriptionDB
{
	private static final long serialVersionUID = 1L;


	public void checkSubscription(SubscriptionInfo sub) throws IllegalArgumentException
	{		
	}


	public String generateNewSubscriptionID()
	{
		return UUID.randomUUID().toString();
	}


	public List<SubscriptionInfo> getUserSubscriptions(String userID)
	{
		return null;
	}
}
